package com.hgd.client.device;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 * <p>
 * Java class for task complex type.
 * 
 * <p>
 * The following schema fragment specifies the expected content contained within
 * this class.
 * 
 * <pre>
 * &lt;complexType name="task">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="device" type="{http://impl.hgd.com/}device" minOccurs="0"/>
 *         &lt;element name="domainId" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="isDelete" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="taskDatas" type="{http://impl.hgd.com/}taskData" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element name="taskKind" type="{http://impl.hgd.com/}taskKind" minOccurs="0"/>
 *         &lt;element name="dStatus" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="tId" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="tState" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="tType" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "task", propOrder = { "device", "domainId", "isDelete",
		"taskDatas", "taskKind", "dStatus", "tId", "tState", "tType" })
public class Task {

	protected Device device;
	protected int domainId;
	protected int isDelete;
	@XmlElement(nillable = true)
	protected List<TaskData> taskDatas;
	protected TaskKind taskKind;
	protected int dStatus;
	protected int tId;
	protected int tState;
	protected int tType;

	/**
	 * Gets the value of the device property.
	 * 
	 * @return possible object is {@link Device }
	 * 
	 */
	public Device getDevice() {
		return device;
	}

	/**
	 * Sets the value of the device property.
	 * 
	 * @param value
	 *            allowed object is {@link Device }
	 * 
	 */
	public void setDevice(Device value) {
		this.device = value;
	}

	/**
	 * Gets the value of the domainId property.
	 * 
	 */
	public int getDomainId() {
		return domainId;
	}

	/**
	 * Sets the value of the domainId property.
	 * 
	 */
	public void setDomainId(int value) {
		this.domainId = value;
	}

	/**
	 * Gets the value of the isDelete property.
	 * 
	 */
	public int getIsDelete() {
		return isDelete;
	}

	/**
	 * Sets the value of the isDelete property.
	 * 
	 */
	public void setIsDelete(int value) {
		this.isDelete = value;
	}

	/**
	 * Gets the value of the taskDatas property.
	 * 
	 * <p>
	 * This accessor method returns a reference to the live list, not a
	 * snapshot. Therefore any modification you make to the returned list will
	 * be present inside the JAXB object. This is why there is not a
	 * <CODE>set</CODE> method for the taskDatas property.
	 * 
	 * <p>
	 * For example, to add a new item, do as follows:
	 * 
	 * <pre>
	 * getTaskDatas().add(newItem);
	 * </pre>
	 * 
	 * 
	 * <p>
	 * Objects of the following type(s) are allowed in the list {@link TaskData }
	 * 
	 * 
	 */
	public List<TaskData> getTaskDatas() {
		if (taskDatas == null) {
			taskDatas = new ArrayList<TaskData>();
		}
		return this.taskDatas;
	}

	/**
	 * Gets the value of the taskKind property.
	 * 
	 * @return possible object is {@link TaskKind }
	 * 
	 */
	public TaskKind getTaskKind() {
		return taskKind;
	}

	/**
	 * Sets the value of the taskKind property.
	 * 
	 * @param value
	 *            allowed object is {@link TaskKind }
	 * 
	 */
	public void setTaskKind(TaskKind value) {
		this.taskKind = value;
	}

	/**
	 * Gets the value of the dStatus property.
	 * 
	 */
	public int getDStatus() {
		return dStatus;
	}

	/**
	 * Sets the value of the dStatus property.
	 * 
	 */
	public void setDStatus(int value) {
		this.dStatus = value;
	}

	/**
	 * Gets the value of the tId property.
	 * 
	 */
	public int getTId() {
		return tId;
	}

	/**
	 * Sets the value of the tId property.
	 * 
	 */
	public void setTId(int value) {
		this.tId = value;
	}

	/**
	 * Gets the value of the tState property.
	 * 
	 */
	public int getTState() {
		return tState;
	}

	/**
	 * Sets the value of the tState property.
	 * 
	 */
	public void setTState(int value) {
		this.tState = value;
	}

	/**
	 * Gets the value of the tType property.
	 * 
	 */
	public int getTType() {
		return tType;
	}

	/**
	 * Sets the value of the tType property.
	 * 
	 */
	public void setTType(int value) {
		this.tType = value;
	}

}
